* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.game-container {
  position: relative;
  width: 480px;
  height: 640px;
  border: 2px solid #444;
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
}

#gameCanvas {
  background-color: #000;
  width: 100%;
  height: 100%;
  display: block;
}

.game-info {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 20;
}

.screen h1 {
  color: #0ff;
  font-size: 36px;
  margin-bottom: 30px;
  text-shadow: 0 0 10px #0ff;
}

.screen p {
  margin: 20px 0;
  font-size: 18px;
}

button {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(0, 102, 204, 0.7);
}

button:hover {
  background-color: #0088ff;
  transform: scale(1.05);
}

#gameOverScreen {
  display: none;
}

/* 敌机信息样式 */
.enemy-info {
  margin-top: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 15px;
  max-width: 80%;
  border: 1px solid #333;
}

.enemy-info h3 {
  color: #0ff;
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center;
}

.enemy-info ul {
  list-style-type: none;
}

.enemy-info li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.enemy-info li:nth-child(1) {
  color: #ff3333;
}

.enemy-info li:nth-child(2) {
  color: #ff9933;
}

.enemy-info li:nth-child(3) {
  color: #cc6699;
}

/* 道具信息样式 */
.powerup-info {
  margin-top: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 15px;
  max-width: 80%;
  border: 1px solid #333;
}

.powerup-info h3 {
  color: #0ff;
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center;
}

.powerup-info ul {
  list-style-type: none;
}

.powerup-info li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.powerup-info li.weapon {
  color: #ff5500;
}

.powerup-info li.shield {
  color: #00aaff;
}

.powerup-info li.life {
  color: #ff0055;
}

.powerup-info li.bomb {
  color: #ff5500;
}

.powerup-info li.slow {
  color: #8888ff;
}

/* 状态效果样式 */
.status-effects {
  display: flex;
  gap: 10px;
}

.status-effect {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 5px;
  min-width: 40px;
}

.status-effect .icon {
  font-size: 20px;
}

.status-effect .level {
  font-size: 12px;
  margin-left: 2px;
}

.status-effect .time {
  font-size: 10px;
  color: #aaa;
}

/* 消息提示样式 */
.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  z-index: 15;
  text-align: center;
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
}
